package cn.imu.appdevexperiment2022.qqfragment;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import butterknife.ButterKnife;
import cn.imu.appdevexperiment2022.R;

public class HomeFragment extends Fragment {

   FragmentMainActivity fragmentMainActivity;
   private Context context;
   @Override
   public void onAttach(Context context) {
      super.onAttach(context);
      this.context = context;
      fragmentMainActivity = (FragmentMainActivity) context;
   }

   @Nullable
   @Override
   public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
      View view = inflater.inflate(R.layout.fragment_home, container, false);
      return view;
   }
}
